print("test Lua脚本启动")
testNumber=1
testBool=true
testFloat=1.2
testString="hyuhyu"

testFunc=function ()
    print("no no")
end

testFunc2=function (a)
    print("yes yes")
    return a
end

testFunc3=function ()
    print("no,more yes")
    return 1,2,"asd"
end
testFunc4=function (a,...)
    print("more yes,no")
    print(a)
    arg={...}
    for key, value in pairs(arg) do
        print(key,value)
    end
end

--List
testList={1,2,3,4,5,6}

testList2={"thisisstring","thisisstring2",true,1,1.2}

--dic
testDic={
    ["one"]=1,
    ["two"]=2,
    ["three"]=3   
}

testDic2={
    [1.6]=1,
    [32]=1.2,
    ["true"]=true,
    [false]="HYU"
}

--class
testInClass={
    testBool=false
}

testClass={
    testInt=45,
    testBool=true,
    testFloat=56.44,
    testString="hhhh",
    testFunc=function ()
        print("testFunc()")
    end,
    testInClass=testInClass
}

function testClass:testFunc2()
    print("testFunc2(self)")
    print(self.testFloat)
end

